package cn.daomeng.firebird.core.log;

import cn.daomeng.firebird.core.exception.FirebirdException;

/**
 * 日志工厂
 *
 * @author wf.shu
 * @since 2019-03-04 14:15
 */
public class LogFactory {
    public static ILogService logService = new LogDefaultServiceImpl();

    public static void info(String message) {
        logService.info(message);
    }

    public static void info(String message, FirebirdException e) {
        logService.info(message,e);
    }

    public static void info(String message, FirebirdException e, Object... objects) {
        logService.info(message,e,objects);
    }

    public static void info(String message, Object... objects) {
        logService.info(message,objects);
    }

    public static void error(String message) {
        logService.error(message);
    }

    public static void error(String message, FirebirdException e) {
        logService.error(message,e);
    }

    public static void error(String message, FirebirdException e, Object... objects) {
        logService.error(message,e,objects);
    }

    public static void error(String message, Object... objects) {
        logService.error(message,objects);
    }


}
